<template>
    <div class="webview">
        {{ webview }}
    </div>
</template>

<script>
import {mapState} from 'vuex';
export default {
    name: 'webview',
    props: {},
    components: {},
    data () {
        return {
            webview: '12312312'
        }
    },
    computed: {
        
    },
    watch: {},
    methods: {},
    beforeCreate () {
    },
    created () {
    },
    beforeMount () {
    },
    mounted () {
        window.myIpcRenderer.on('sendDataToOther', (event, message) => {
            // 处理接收到的消息
            this.webview = message
        });
 
    },
    beforeUpdate () {
    },
    updated () {
    },
    activated () {
    },
    deactivated () {
    },
    beforeDestroy () {
    },
    destroyed () {
    }
}
</script> 
<style scoped lang='less'>

</style>
